import React from 'react';

const App = () => {
  let bool = true;
  const format = ()=>{
    return "msg"
  }
  let arr = [1,2,3];
  let obj = {
    name:"TT"
  }
  return (
    <div>
      {/* vue => {{1+1}} */}
      {/* 表达式 */}
      <h1>1+1={1+1}</h1>
      <h2>{"abc"+"d"}</h2>
      <h3>{bool?<span>真</span>:"假"}</h3>
      <h4>{format()}</h4>
      <h5>{arr}</h5>
      <h6>{obj.name}</h6>
      {/* <div>{
        if(bool){

        }  
      }</div> */}
    </div>
  );
}

export default App;
